const School = {
    name: 'School',
    template: `
        <div>
            <h2>学校名称: {{name}}</h2>
            <h2>学校地址: {{address}}</h2>
            <button @click="showMore">展示更多信息</button>
        </div>
    `,
    data(){
        return{
            name: '尚硅谷',
            address: '宏福科技园',
            tel: '12366669999',
            city: '北京'
        }
    },
    methods: {
        showMore(){
            alert(`所在城市: ${this.city}------联系方式: ${this.tel}`)
        }
    }
}